package com.xinzhi.service.recordService;

import com.xinzhi.pojo.Incomeandexpenditurerecord;
import com.xinzhi.pojo.dto.ShouZhi;
import com.xinzhi.utils.Result;
import org.joda.time.DateTime;

import java.text.ParseException;
import java.util.List;

public interface IIncomeAndExpensesService {
//    /**
//     * 添加收入支出记录
//     * @param incomeandexpenditurerecord 收入支出对象
//     * @return
//     */
//    Integer addIncomeAndExpenses(Incomeandexpenditurerecord incomeandexpenditurerecord);

    /**
     * 根据用户id查询收入支出记录
     * @param userId 用户id
     * @return 收入支出记录
     */
    Result selectIncomeAndExpenses(Integer pageNum, Integer pageSize,Integer userId);

    /**
     * 根据收支情况及金钱范围进行查询
     * @param shouZhi
     * @return
     */
    Result selectBytype(ShouZhi shouZhi);
    /**
     * 根据卡号进行查询
     * @param zhi
     * @return
     */
    Result selectByCard(ShouZhi zhi);
    /**
     * 根据时间进行查询
     * @param time
     * @param time2
     * @param userId
     * @return
     * @throws ParseException
     */
    Result selectByTime(String time,String time2 ,Integer userId) throws ParseException;
}
